home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / cxl52_1.zip / CXLPRN.H < prev    next >
Text File  |  1990-02-17  |  3KB  |  62 lines

  1. /*
  2.    ┌──────────────────────────────────────────────────────────────────────────┐
  3.    │                                                                          │
  4.    │  CXLPRN.H  -  CXL is Copyright (c) 1987-1990 by Mike Smedley.            │
  5.    │                                                                          │
  6.    │  This header file contains function prototypes and definitions for       │
  7.    │  printer functions.                                                      │
  8.    │                                                                          │
  9.    └──────────────────────────────────────────────────────────────────────────┘
  10. */
  11.  
  12. #if defined(__TURBOC__)                         /* Turbo C */
  13.     #if __STDC__
  14.         #define _Cdecl
  15.     #else
  16.         #define _Cdecl  cdecl
  17.     #endif
  18.     #define _Near
  19. #elif defined(__ZTC__)                          /* Zortech C++ */
  20.     #define _Cdecl
  21.     #define _Near
  22. #elif defined(M_I86) && !defined(__ZTC__)       /* Microsoft C/QuickC */
  23.     #if !defined(NO_EXT_KEYS)
  24.         #define _Cdecl  cdecl
  25.         #define _Near   near
  26.     #else
  27.         #define _Cdecl
  28.         #define _Near
  29.     #endif
  30. #endif
  31.  
  32. /*---------------------------[ function prototypes ]-------------------------*/
  33.  
  34. void     _Cdecl lprintc(int ch);
  35. void     _Cdecl lprintf(const char *format,...);
  36. void     _Cdecl lprintns(char *str,int count);
  37. void     _Cdecl lprints(char *str);
  38. void     _Cdecl lprintsb(char *str,int reps);
  39. void     _Cdecl lprintsu(char *str);
  40. void     _Cdecl scrndump(void);
  41. void     _Cdecl windump(int srow,int scol,int erow,int ecol);
  42.  
  43. /*-----------[ printer Escape codes for Epson compatible printers ]----------*/
  44.  
  45.     /*  Example:  lprints(L_BFON"This is bold printing"L_BFOFF);    */
  46.  
  47. #define L_BFOFF     "\033F"     /* turns bold faced printing off  */
  48. #define L_BFON      "\033E"     /* turns bold faced printing on   */
  49. #define L_DWOFF     "\033W0"    /* turns double wide printing off */
  50. #define L_DWON      "\033W1"    /* turns double wide printing on  */
  51. #define L_ELITE     "\033M"     /* sets printer in 12 CPI mode    */
  52. #define L_INIT      "\033@"     /* initializes printer            */
  53. #define L_ITALOFF   "\0335"     /* turns italicized printing off  */
  54. #define L_ITALON    "\0334"     /* turns italicized printing on   */
  55. #define L_PICA      "\033P"     /* sets printer in 10 CPI mode    */
  56. #define L_ULOFF     "\033-0"    /* turns underlined printing off  */
  57. #define L_ULON      "\033-1"    /* turns underlined printing on   */
  58.  
  59. /*-----------------------[ macro-function definitions ]----------------------*/
  60.  
  61. #define lcrlf()     lprintc(10)
  62.